package com.dv.driverless.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dv.driverless.mapper.PlanWarehousingMapper;
import com.dv.driverless.domain.PlanWarehousing;
import com.dv.driverless.service.IPlanWarehousingService;

/**
 * 入库计划Service业务层处理
 *
 * @author ruoyi
 * @date 2023-04-14
 */
@Service
public class PlanWarehousingServiceImpl implements IPlanWarehousingService
{
    @Autowired
    private PlanWarehousingMapper planWarehousingMapper;

    /**
     * 查询入库计划
     *
     * @param id 入库计划主键
     * @return 入库计划
     */
    @Override
    public PlanWarehousing selectPlanWarehousingById(Long id)
    {
        return planWarehousingMapper.selectPlanWarehousingById(id);
    }

    /**
     * 查询入库计划列表
     *
     * @param planWarehousing 入库计划
     * @return 入库计划
     */
    @Override
    public List<PlanWarehousing> selectPlanWarehousingList(PlanWarehousing planWarehousing)
    {
        return planWarehousingMapper.selectPlanWarehousingList(planWarehousing);
    }

    /**
     * 新增入库计划
     *
     * @param planWarehousing 入库计划
     * @return 结果
     */
    @Override
    public int insertPlanWarehousing(PlanWarehousing planWarehousing)
    {
        return planWarehousingMapper.insertPlanWarehousing(planWarehousing);
    }

    /**
     * 修改入库计划
     *
     * @param planWarehousing 入库计划
     * @return 结果
     */
    @Override
    public int updatePlanWarehousing(PlanWarehousing planWarehousing)
    {
        return planWarehousingMapper.updatePlanWarehousing(planWarehousing);
    }

    /**
     * 批量删除入库计划
     *
     * @param ids 需要删除的入库计划主键
     * @return 结果
     */
    @Override
    public int deletePlanWarehousingByIds(Long[] ids)
    {
        return planWarehousingMapper.deletePlanWarehousingByIds(ids);
    }

    /**
     * 删除入库计划信息
     *
     * @param id 入库计划主键
     * @return 结果
     */
    @Override
    public int deletePlanWarehousingById(Long id)
    {
        return planWarehousingMapper.deletePlanWarehousingById(id);
    }
}
